package ar.com.spsolutions.splibrary.user;

import ar.com.spsolutions.splibrary.validation.rules.ValidationRule;

public class PasswordValidatorRule extends ValidationRule {

	@Override
	protected void apply(final Object... objects) {
		final String password = (String) objects[0];
		if (password.length() < 6) {
			this.invalidate("El password debe tener como minimo 6 caracteres");
		}
	}

}
